import type { IList, IResult } from "@/types/common";
import { getAxios, commonAxiosJson } from "@/utils/request.js";
const url = "/back/apply-cancel-order";
/* 获取抖音申请退款单列表信息 */
export const getDouyinApplyCancelOrderInfo = <T, D>(params?: D): Promise<IResult<IList<T>>> => {
  return getAxios<IList<T>, D>(url, params);
};
/* 同意申请抖音退款 信息 */
export const updateDouyinApplyCancelOrderAgreeInfo = <T, D>(params: D): Promise<IResult<T>> => {
  return commonAxiosJson<T, D>(url + "/agree", params, "PUT");
};
/* 拒绝申请抖音退款 信息 */
export const updateDouyinApplyCancelOrderRejectInfo = <T, D>(params: D): Promise<IResult<T>> => {
  return commonAxiosJson<T, D>(url + "/reject", params, "PUT");
};
